﻿// ***********************************************************************
// Assembly         : ElFinder.Net
// Author           : Lolo
// Created          : 06-05-2013
//
// Last Modified By : Lolo
// Last Modified On : 06-05-2013
// ***********************************************************************
// <copyright file="InitResponse.cs" company="">
//     Copyright (c) . All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System.Runtime.Serialization;
using ElFinder.DTO;
using System.Collections.Generic;
using System.Linq;

namespace ElFinder.Response
{
    /// <summary>
    /// Class InitResponse
    /// </summary>
    [DataContract]
    internal class InitResponse : OpenResponseBase
    {
        /// <summary>
        /// The _empty
        /// </summary>
        private static string[] _empty = new string[0];
        /// <summary>
        /// Gets the API.
        /// </summary>
        /// <value>The API.</value>
        [DataMember(Name="api")]
        public string Api { 
            get { return "2.0"; } 
        }

        /// <summary>
        /// Gets the size of the upload max.
        /// </summary>
        /// <value>The size of the upload max.</value>
        [DataMember(Name = "uplMaxSize")]
        public string UploadMaxSize { get { return string.Empty; } }

        /// <summary>
        /// Gets the net drivers.
        /// </summary>
        /// <value>The net drivers.</value>
        [DataMember(Name = "netDrivers")]
        public IEnumerable<string> NetDrivers { get { return _empty; } }

        /// <summary>
        /// Initializes a new instance of the <see cref="InitResponse" /> class.
        /// </summary>
        /// <param name="currentWorkingDirectory">The current working directory.</param>
        public InitResponse(DTOBase currentWorkingDirectory)
            : base(currentWorkingDirectory)
        {
            Options = new Options();
        }
    }
}